package encounter;

import main.Hero;
import monster.Monster;

public class UniqueMonsterEncounter implements Encounter {
    private final Monster monster;

    public UniqueMonsterEncounter(Monster monster) {
        this.monster = monster;
    }

    @Override
    public boolean resolve(Hero hero) {
        // heal before combat
        monster.updateHealth(monster.getMaxHealth());
        monster.updateEnergy(1.0);

        return new Combat(hero, monster).fight();
    }

}
